/*
 * Copyright (c) 2015, 张涛.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.yuexun.dhdoctor.config;

import com.yuexun.dhdoctor.module.login.bean.AreaBean;

import java.util.List;

/**
 * 配置文件常量
 *
 * @author kymjs (https://www.kymjs.com)
 * @since 2015-3
 */
public class AppConfig {
    /**
     * 全局CrashHandler抓取报错信息到手机本地文件中
     */
    public static final String SAVEFOLDER = "dharea";
    public static final String SAVEFILENAME = "dharea.log";
    //文件下载目录
    public static final String FILE_CONTENT = "Doctordownload/";


    //系统配置地址
//    public static final String WEB_ROOT = "http://220.191.203.23/";
    public static final String WEB_ROOT = "http://106.75.213.54:8080/";
    //系统配置地址
//    public static final String WEB_SYSTEM = WEB_ROOT + "dinghai/api/v1.0/";
    public static final String WEB_SYSTEM = WEB_ROOT + "dharea/api/v1.0/";
    //H5界面
    public static final String WEB_H5 = WEB_ROOT + "dinghai/blTotal/pages/html/";
    public static final String WEB_H5_2 = WEB_ROOT + "dinghai/hospital/pages/html/";
    //获取应用最新版本
    public static final String CHECK_APP_LASTVERSION = "https://umc.51yizhen.com/oa/dharea/";
    //app分享下载页面
    public static final String WEB_APP_SHARE = CHECK_APP_LASTVERSION + "download.html";
    //会议 二维码地址
    public static final String WEB_QRCODE = WEB_ROOT + "data/qrcode/";
    //文件下载
    public static final String WEB_FILE = WEB_SYSTEM + "downloadFile.file?fileUuid=";
    //文件上传
    public static final String WEB_FILE_UPLOAD = WEB_SYSTEM + "uploadFile.json";
    //TEXTVIEW带图
    public static final String TEXTVIEW_WEB_All = WEB_ROOT + "dinghai/ueditor/ueditor/image";
    public static final String TEXTVIEW_WEB = "/dinghai/ueditor/ueditor/image";
    public static final String TEXTVIEW_WEBVIEW = "http://220.191.203.23/";


    //加载界面提示框状态值
    public static final int SHOW_DIALOG = 1;
    public static final int DISMISS_DIALOG = -1;
    /**
     * 加载列表状态
     */
    public static final int DOWNLOAD_SUCCESS = 1;
    public static final int DOWNLOAD_NODATA = 0;
    public static final int DOWNLOAD_NETERROR = -1;

    //存储xml文件名
    public static final String USER_INFO = "user_info";
    //session id
    public static final String SESSION_ID = "sessionid";
    //工号
    public static final String JOB_ID = "jobid";
    //uid
    public static final String USER_ID = "userid";
    //用户名
    public static final String USER_NAME = "username";
    //科室名
    public static final String USER_DEPT = "department";
    //角色类型
    public static final String ROLETYPE = "roletype";
    //科室id
    public static final String DEPARTMENTID = "departmentid";
    //科室名
    public static final String DEPARTMENTNAME = "departmentname";
    //科室id
    public static final String ACCOUNT_ID = "accountid";
    //签名
    public static final String SIGN_URL = "signUrl";

    //是否有内置密码
    public static final String ISPASSWORD = "ispassword";
    //内置密码
    public static final String PASSWORD = "password";

    public static final String HOSPKEY = "slHospKey";

    //数联医院id和医生id
    public static final String SIHOSPCODE = "slHospCode";
    public static final String RALATEHISACCOUNTId = "relatedHISAccountId";

    //区域
    //区域ID
    public static final String AREAID = "areaId";
    //区域名称
    public static final String AREANAME = "areaName";
    //医院ID
    public static final String HOSPITALID = "hospitalId";
    //医院名称
    public static final String HOSPITALNAME = "hospitalname";
    //区域列表
    public static List<AreaBean> AREA_BEAN = null;

    //自动账号登录
    public static final String ISLOGIN = "islogin";
    public static final String USERNAME = "username_login";
    public static final String USERPWD = "userpwd";
    public static final String USERDEVICE = "userdevice";
    public static final String USERAPPKEY = "userappkey";

    //推送
    public static String msgId = "";
    public static String msgType = "";

    //权限
    public static boolean QYRB = false;
    public static boolean BBCX = false;

}
